import {
	http
} from '@/utils/request.js'

// 登录
export function login(obj) {
	return http({
		url: '/user/loginApp',
		method: 'post',
		data: obj
	})
}

export function queryUserMenuByApp(obj) {
	return http({
		url: '/user/queryUserMenuByApp',
		method: 'get',
		data: obj
	})
}

export function queryHeadInfoByApp(obj) {
	return http({
		url: '/user/queryHeadInfoByApp',
		method: 'get',
		data: obj
	})
}

export function queryControlListByApp(obj) {
	return http({
		url: '/mqtt/queryControlListByApp',
		method: 'get',
		data: obj
	})
}

export function makeDeviceControlByApp(obj) {
	return http({
		url: '/mqtt/makeDeviceControlByApp',
		method: 'post',
		data: obj
	})
}

export function queryControlListV2ByApp(obj) {
	return http({
		url: '/mqtt/queryControlListV2ByApp',
		method: 'get',
		data: obj
	})
}

export function queryControlListV3ByApp(obj) {
	return http({
		url: '/mqtt/queryControlListV3ByApp',
		method: 'get',
		data: obj
	})
}

export function batchControlByApp(obj) {
	return http({
		url: '/allSend/batchControlByApp',
		method: 'post',
		data: obj
	})
}

export function queryRuleByApp(obj) {
	return http({
		url: '/allSend/queryRuleByApp',
		method: 'get',
		data: obj
	})
}

export function queryPicLightByApp(obj) {
	return http({
		url: '/principalTotal/queryPicLightByApp',
		method: 'get',
		data: obj
	})
}

export function updateRuleV2ByApp(obj) {
	return http({
		url: '/allSend/updateRuleV2ByApp',
		method: 'post',
		data: obj
	})
}


export function updatePwdByApp(obj) {
	return http({
		url: '/user/updatePwdByApp',
		method: 'post',
		data: obj
	})
}

export function queryFileListByApp(obj) {
	return http({
		url: '/user/queryFileListByApp',
		method: 'get',
		data: obj
	})
}

export function queryNewVersion(obj) {
	return http({
		url: '/allSend/queryNewVersion',
		method: 'get',
		data: obj
	})
}

export function queryRiskWaitMakeNumberApp(obj) {
	return http({
		url: '/allSend/queryRiskWaitMakeNumberApp',
		method: 'get',
		data: obj
	})
}

export function queryRiskWaitMakePageApp(obj) {
	return http({
		url: '/allSend/queryRiskWaitMakePageApp',
		method: 'get',
		data: obj
	})
}

export function overOneRiskApp(obj) {
	return http({
		url: '/allSend/overOneRiskApp',
		method: 'post',
		data: obj
	})
}